var express = require('express');
var router = express.Router();
var sql = require('./../tool/sql');
var md5 = require('md5');
/* GET home page. */
router.get('/', function(req, res, next) {
  // console.log(req.cookies)
  res.redirect('/index');

  
});

//登录
router.get('/logins', function(req, res, next) {
  res.render('logins',{});
});
//注册
router.get('/register', function(req, res, next) {
  res.render('register',{});
});
router.get('/index', function(req, res, next) {
  res.render('index',{});
});

module.exports = router;
